<template>
  <div class="head">
    <div class="head-left">
      <span class="iconfont">&#xe630;</span>
    </div>
    <div class="head-search">
      <span class="iconfont">&#xe615;</span>
      输入城市/景点/
    </div>
    <div class="head-right" @click="toCity">
      北京<span class="iconfont">&#xe639;</span>
    </div>
  </div>
</template>

<script>

export default {
  name: "HomeHead",
  methods: {
    toCity() {
      this.$router.push('/city')
    }
  }
}
</script>

<style scoped>
  .head {
    width: 100%;
    line-height: .88rem;
    background: var(--color-background);
    color: #fff;
    font-size: .36rem;
    display: flex;
  }
  .head-left {
    width: .4rem;
    padding: 0 .2rem;
    text-align: center;
    font-weight: bold;
  }
  .head-search {
    flex: 1;
    height: .6rem;
    margin: .135rem 0;
    border-radius: .1rem;
    background: #fff;
    color: #e4e7ea;
    line-height: .6rem;
    font-size: .26rem;
    padding-left: .1rem;
  }
  .head-right {
    font-size: .28rem;
    padding: 0 .1rem;
  }
</style>
